package com.duotai;

public class PingtaiTest {
    public static void main(String[] args) {
        Pingtai dancer = new Dancer();
        Pingtai singer = new Singer();
        dancer.name = "舞者";
        singer.name = "歌手";
        System.out.println(dancer.toString());
        System.out.println(singer.toString());

        Pingtai[] arr1 = {dancer,singer};
        for (int i = 0; i < arr1.length; i++) {
            arr1[i].show();
        }

    }
}
